﻿using System;
using System.Collections.Generic;

namespace SharpObjects.SearchEngine.Common.Search
{
    [Serializable]
    public class QueryResult : IQueryResult
    {
        public List<IQueryResultItem> QueryResultItems {get; set; }
        public List<IConceptGroup> ConceptGroups { get; set; }
        public int TotalDocuments { get; set; }
        public int PageSize { get; set; }
        public int PageNumber { get; set; }

        public QueryResult(List<IQueryResultItem> queryResultItems, List<IConceptGroup> conceptGroups)
        {
            this.QueryResultItems = queryResultItems;
            this.ConceptGroups = conceptGroups;
        }

        public QueryResult()
        {
            this.QueryResultItems = new List<IQueryResultItem>();
            this.ConceptGroups = new List<IConceptGroup>();
        }
    }
}